package com.ykdl.member.kid.fragments;

import com.ykdl.member.KidApp;
import com.ykdl.member.kid.R;
import com.ykdl.member.kid.advert.AdvertListActivity;
import com.ykdl.member.kid.doctor.AskDoctorActivity;
import com.ykdl.member.kid.doctor.DoctorOnlineListActivity;
import com.ykdl.member.kid.fittool.FeedToolActivity;
import com.ykdl.member.kid.fittool.HeightWeightHeadActivity;
import com.ykdl.member.kid.gears.BindStoreActivity;
import com.ykdl.member.kid.person.PersonCenterActivity;
import com.ykdl.member.kid.set.InvitationActivity;
import com.ykdl.member.kid.set.SettingActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;

public class MoreFragment extends BaseFragment_home implements OnClickListener{
	private KidApp mApplication ;

	@Override
	public View initView(LayoutInflater inflater) {
		// TODO Auto-generated method stub
		
		view=inflater.inflate(R.layout.findotheractivity_xml, null);
//		setTopTitle("更多", 0, 0, null, 0, 0, null, R.drawable.title_bg, false);
		init();
		return view;
	}

	private void init() {
		// TODO Auto-generated method stub
		view.findViewById(R.id.preson).setOnClickListener(this);
		view.findViewById(R.id.ask_doctor).setOnClickListener(this);
		view.findViewById(R.id.zhuanjia_zuozhen).setOnClickListener(this);
		view.findViewById(R.id.shengao_tizhong).setOnClickListener(this);
		view.findViewById(R.id.weiyangjilu).setOnClickListener(this);
		view.findViewById(R.id.huodong).setOnClickListener(this);
		view.findViewById(R.id.set_regdiv).setOnClickListener(this);
		view.findViewById(R.id.set_invite_gift).setOnClickListener(this);
	}

	@Override
	public void initData(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.preson:
			go(PersonCenterActivity.class);
			break;
		case R.id.ask_doctor:
			go(AskDoctorActivity.class);
			break;
		case R.id.zhuanjia_zuozhen:
			go(DoctorOnlineListActivity.class);
			break;
		case R.id.shengao_tizhong:
			go(HeightWeightHeadActivity.class);
			break;
		case R.id.weiyangjilu:
			go(FeedToolActivity.class);
			break;
		case R.id.huodong:
			go(AdvertListActivity.class);
			break;
		case R.id.set_regdiv:
			go(SettingActivity.class);
			break;
		case R.id.set_invite_gift: //邀请有礼
			go(InvitationActivity.class);
			break;

		default:
			break;
		}
	}

}
